package cn.kwq.project_manger.pojo;

import cn.kwq.project_manger.pojo.Auditable.Auditable;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.OptimisticLocking;

import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity //作为hibernate
@Table(name = "Team")
@Builder
@ApiModel(value = "项目信息")
@EqualsAndHashCode(callSuper=false)
@OptimisticLocking(type = org.hibernate.annotations.OptimisticLockType.VERSION)//乐观锁
public class Team extends Auditable<Long> {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//id自增
    @Column(name = "teamId")
    private Long teamId;

    /**
     * 队伍名字
     */
    private String teamName;

    private Integer teamType;

    private String teamProjectName;

    /**
     * 总共人数
     */
    private Integer teamNum;

    /**
     * 队伍情况
     */
    private String situation;

    /**
     * 发起人姓名
     */
    private String originators;

    /**
     * 队伍目标
     */
    private String goal;

    /**
     * 招收对象
     */
    private String recruit;

    /**
     * 类型 0为组织 1个人
     */
    private Integer type;

    /**
     * 联系方式
     */
    private String connect;

    /**
     * 招收对象需求
     */
    private String recruitNeed;


    /**
     * 组队类型 直接传比赛，项目，其他自定义
     */
    private String groupType;

    private Integer status;





}
